package com.hulk.ratel.common.constant.enums;

import com.google.common.base.Objects;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author hulk
 *
 */
@Getter
@AllArgsConstructor
public enum KeyPathType {

	RELATIVE("RELATIVE", "相对路径"),
	ABSOLUTE("ABSOLUTE", "绝对路径"),
	DATABASE("DATABASE", "数据库存储");


	private String value;
	private String desc;

	public static String explain(String value) {
		for (KeyPathType obj : KeyPathType.values()) {
			if (Objects.equal(value, obj.value)) {
				return obj.desc;
			}
		}
		return value;
	}
	

}
